import request from '@/utils/request'

// 查询overall-info列表
export function listFactors(query) {
  return request({
    url: '/buss/factors/list',
    method: 'get',
    params: query
  })
}

// 查询overall-info详细
export function getFactors(id) {
  return request({
    url: '/buss/factors/' + id,
    method: 'get'
  })
}

// 新增overall-info
export function addFactors(data) {
  return request({
    url: '/buss/factors',
    method: 'post',
    data: data
  })
}

// 修改overall-info
export function updateFactors(data) {
  return request({
    url: '/buss/factors',
    method: 'put',
    data: data
  })
}

// 删除overall-info
export function delFactors(id) {
  return request({
    url: '/buss/factors/' + id,
    method: 'delete'
  })
}
